<%--
  Created by IntelliJ IDEA.
  User: zsh
  Date: 2020/9/9
  Time: 23:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String username = "admin";
//    pageContext.setAttribute("username","pageContext_username");
//    request.setAttribute("username","request_username");
//    session.setAttribute("username","session_username");
    application.setAttribute("username","application_username");
%>
使用jsp表达式获取当前页面的变量<%=username%>
<br>
使用el表达式获取当前页面的变量${username}
</body>
</html>
